/*
 * Copyright (c) 2024 -present FengJinjian ( 751965763@qq.com )

 * Licensed to the Apache Software Foundation (ASF) under one or more
 * contributor license agreements.  See the NOTICE file distributed with
 * this work for additional information regarding copyright ownership.
 * The ASF licenses this file to You under the Apache License, Version 2.0
 * (the "License"); you may not use this file except in compliance with
 * the License.  You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 *
 */
package edu.vital.energy.longevity.ch07.controller;


import io.swagger.v3.oas.annotations.tags.Tag;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * UserController - 非RESTful风格的用户控制器
 *
 * @version 1.0.1
 * @author FengJinJian
 * @date 2025/3/22 22:44
 */
@Tag(name = "用户管理", description = "描述：测试Swagger3")
@Controller
@RequestMapping("/user")
public class UserController {
    @RequestMapping(value = "/create",method = RequestMethod.POST)
    @ResponseBody
    public  String  createUser() {
     // 创建用户
     return "createUser";
    }
    @RequestMapping(value = "/delete",method = RequestMethod.DELETE)
    public  String  deleteUser() {
        // 删除用户
        return "deleteUser";
    }

    @RequestMapping(value = "/modify",method = RequestMethod.PUT)
    public  String  modifyUser() {
        // 修改用户
        return "modifyUser";
    }
    @RequestMapping(value = "/get",method = RequestMethod.GET)
    public  String  getUser() {
        // 获取用户
        return "getUser";
    }
    @RequestMapping(value = "/import",method = RequestMethod.POST)
    public  String  importUser() {
        // 导入用户
        return "importUser";
    }
    @RequestMapping(value = "/export",method = RequestMethod.POST)
    public  String  exportUser() {
        // 导出用户
        return "exportUser";
    }

}